package top.hg.tool.modules.car.oil;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.hg.tool.common.util.R;

import java.util.List;

/**
 * @Author: skh
 * @Date: 2019/7/30 10:36
 * @Description:
 */
@RestController
@RequestMapping("/car")
@Api(value = "油价管理")
@Slf4j
public class OilController {
    @Autowired
    private OilService oilService;


    @ApiOperation("查询汽油列表")
    @GetMapping("/getOilList")
    public R getOilList() {
        List<OilEntity> oilEntityList = oilService.getOilList();
        return R.success(oilEntityList);
    }
}
